package test;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class UserInterface {
	
	public String createQuestion(Statement statement){
		String input = "";
		System.out.println(statement.getQuestion());
		
		// falls Wert mit mehreren Elementen (bool, String-Liste)
		if(statement.getValue_string().size() > 1){
			for(int i = 0; i < statement.getValue_string().size(); i++){
				System.out.println(i + " = " + statement.getValue_string().get(i));
			}	
		}
		
		System.out.println("Bitte Eingabe: ");
		BufferedReader in = new BufferedReader( new InputStreamReader( System.in ) );
        try {
			input = in.readLine();
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		return input;
	}
	
	public boolean goToNextQuestion(){
		String input = "";
		System.out.println(" ");
		System.out.println("Weiter = 1 | Fertig = 2");
		BufferedReader in = new BufferedReader( new InputStreamReader( System.in ) );
        try {
			input = in.readLine();
		} catch (IOException e) {
			e.printStackTrace();
		}
		if(input.equals("1")){
			return false;
		} else {
			return true;
		}
	}
	
	public void printName(String name){
		System.out.println(name);
	}
}
